//
var TN_Widget = function() {
return {
//Options
newWindow : true,
linkText : "view
tickets",
tixUrl : "http://www.ticketnetwork.com/tix/",
trackingParams : "",
custLink : true,
//depricated
kbid : "",
//Overwrittable functions
trackingLink :"",
CreateCustomUrl : function(row) {
return this.tixUrl + row[7] + "-tickets-"+ row[6] + ".aspx";
},
CreateEventRow : function(row, isAlt) {
return "
" +
row[0] +" | " +
row[1] +" " +
row[2] +" | " +
row[3] +" " +
row[4] + " " +
row[5] + " | "+ this.linkText+ " |
";
},
AddCss: function(cssUrl) {
var fileref=document.createElement("link");
fileref.setAttribute("rel", "stylesheet");
fileref.setAttribute("type", "text/css");
fileref.setAttribute("href", cssUrl);
document.getElementsByTagName("head")[0].appendChild(fileref);
},
CreateTable : function(eventData,kywrds,url) {
if(typeof(TN_SetWidgetOptions) == "function")
TN_SetWidgetOptions();
//for backwards compatability
if(this.kbid != "")
this.trackingParams = "?img=249&kbid="+this.kbid;
var newTable = [];
for(var cntr = 0; cntr < eventData.length; cntr++)
newTable.push(this.CreateEventRow(eventData[cntr], cntr % 2 == 1));
var objToAddTo;
if(objToAddTo = document.getElementById("tn_results_container")) {
objToAddTo.innerHTML = '' + newTable.join('') + '
';
} else
document.write('' + newTable.join('') + '
');
if(eventData.length >= 100 && kywrds != undefined) {
if(objToAddTo = document.getElementById("tn_results_container")) {
objToAddTo.innerHTML += '';
} else {
document.write("");
}
}
if(eventData.length > 0) {
document.getElementById("previewNote").style.display = "none";
}
}
};
}();
//BPW-TNSERV-02A
TN_Widget.CreateTable([['Freddy Awards Preview Night','State Theatre - Easton','Easton, PA','Wednesday','5/22/2024','4:30 PM','6401110','Freddy-Awards-Preview-Night-5-22-2024'],['Vic Dibitetto','State Theatre - Easton','Easton, PA','Saturday','6/1/2024','8:00 PM','6080290','Vic-Dibitetto-6-1-2024'],['Paul Anka','State Theatre - Easton','Easton, PA','Wednesday','6/5/2024','7:00 PM','6269740','Paul-Anka-6-5-2024'],['Shrek The Musical','State Theatre - Easton','Easton, PA','Wednesday','6/12/2024','7:00 PM','5871516','Shrek-The-Musical-6-12-2024'],['Shrek The Musical','State Theatre - Easton','Easton, PA','Thursday','6/13/2024','7:00 PM','5871517','Shrek-The-Musical-6-13-2024'],['Invincible','State Theatre - Easton','Easton, PA','Saturday','6/22/2024','7:30 PM','6144180','Invincible-6-22-2024'],['The Beach Boys','State Theatre - Easton','Easton, PA','Thursday','6/27/2024','7:30 PM','6254221','The-Beach-Boys-6-27-2024'],['The Fab Faux','State Theatre - Easton','Easton, PA','Friday','6/28/2024','7:30 PM','6144179','The-Fab-Faux-6-28-2024'],['Scott Bradlee's Postmodern Jukebox','State Theatre - Easton','Easton, PA','Sunday','7/21/2024','7:00 PM','6319217','Scott-Bradlee-s-Postmodern-Jukebox-7-21-2024'],['Late Night Catechism','State Theatre - Easton','Easton, PA','Friday','9/20/2024','7:00 PM','6144188','Late-Night-Catechism-9-20-2024'],['Air Supply','State Theatre - Easton','Easton, PA','Saturday','9/28/2024','7:30 PM','6331575','Air-Supply-9-28-2024'],['Puppy Pals','State Theatre - Easton','Easton, PA','Sunday','9/29/2024','3:00 PM','6228402','Puppy-Pals-9-29-2024'],['Lee Asher','State Theatre - Easton','Easton, PA','Sunday','10/13/2024','6:00 PM','6265999','Lee-Asher-10-13-2024'],['Swan Lake','State Theatre - Easton','Easton, PA','Saturday','11/9/2024','2:00 PM','6401112','Swan-Lake-11-9-2024'],['Oh What A Night Of Doo Wop & Rock N Roll','State Theatre - Easton','Easton, PA','Saturday','11/16/2024','7:00 PM','6306691','Oh-What-A-Night-Of-Doo-Wop---Rock-N-Roll-11-16-2024'],['Bored Teachers Comedy Tour','State Theatre - Easton','Easton, PA','Sunday','11/17/2024','3:00 PM','6391734','Bored-Teachers-Comedy-Tour-11-17-2024'],['State Ballet Theatre of Ukraine','Center Theatre At North Shore Center For The Performing Arts','Skokie, IL','Wednesday','11/20/2024','7:30 PM','6407728','State-Ballet-Theatre-of-Ukraine-11-20-2024'],['Josh Wolf','State Theatre - Easton','Easton, PA','Saturday','12/14/2024','8:00 PM','6327774','Josh-Wolf-12-14-2024'],['Rob Lake','State Theatre - Easton','Easton, PA','Saturday','3/1/2025','7:00 PM','6113745','Rob-Lake-3-1-2025']],'State Theatre Center for the Arts','http://www.ticketnetwork.com/ticket/State-Theatre-Center-for-the-Arts-events.aspx');